/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package accountmanager;

/**
 *
 * @author jonesbr
 */
public class Account {
    
    private double balance;
    private double rate;
    private int periods;
    private String name;

    /**
     * @return the balance
     */
    public double getBalance() {
        return balance;
    }

    /** 
     * @param balance the balance to set
     */
    public void setBalance(double balance) {
        this.balance = balance;
    }

    /**
     * @return the rate
     */
    public double getRate() {
        return rate;
    }

    /**
     * @param rate the rate to set
     */
    public void setRate(double rate) {
        this.rate = rate;
    }

    /**
     * @return the periods
     */
    public int getPeriods() {
        return periods;
    }

    /**
     * @param periods the periods to set
     */
    public void setPeriods(int periods) {
        this.periods = periods;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name + " Balance: " + balance;
    }
    
}
